home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Clipboard / ScrapItem.h < prev    next >
Text File  |  2000-06-23  |  589b  |  37 lines

  1. // ScrapItem.h
  2.  
  3. #ifndef ScrapItem_h
  4. #define ScrapItem_h
  5.  
  6. #ifndef ScrapType_h
  7. #include "ScrapType.h"
  8. #endif
  9. #ifndef Assert_h
  10. #include "Assert.h"
  11. #endif
  12.  
  13. class MasterPointer;
  14.  
  15. class ScrapItem
  16.   {
  17.     private:
  18.         const ScrapType type;
  19.         bool exists;
  20.         uint32 size;
  21.         int32 offset;
  22.         
  23.         // not implemented:
  24.             ScrapItem( const ScrapItem& );
  25.             void operator=( const ScrapItem& );
  26.         
  27.     public:
  28.         ScrapItem( const ScrapType& theType );
  29.         
  30.         bool Exists() const            { return exists; }
  31.         uint32 Size() const            { Assert( exists ); return size; }
  32.         
  33.         void operator>>( MasterPointer& ) const;
  34.   };
  35.  
  36. #endif
  37.